<!-- Modal -->
<div class="modal fade" id="div-modal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="h-modal" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="h-modal">修改供应商信息</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body u-card">
                <form id="form-provider-modify" method="post" class="container row">
                    <div class="col-md-3 px-0">
                        <ul class="px-0">
                            <li style="height: 25px;">
                                <label style="float:right" for="form-id">供应商ID:</label>
                            </li>
                            <li style="height: 25px;">
                                <label style="float:right" for="form-id">供应商账号:</label>
                            </li>
                            <li style="height: 25px;">
                                <label style="float:right" for="form-name">供应商名称:</label>

                            </li>
                            <li style="height: 25px;">
                                <label style="float:right" for="form-contact">联系人:</label>

                            </li>

                            <li style="height: 25px;">
                                <label style="float:right" for="form-fax">传真:</label>

                            </li>

                            <li style="height: 25px;">
                                <label style="float:right" for="form-phone">联系电话:</label>

                            </li>

                            <li style="height: 25px;">
                                <label style="float:right" for="form-address">地址:</label>

                            </li>

                            <li style="height: 25px;">
                                <label style="float:right" for="form-detail">描述:</label>
                            </li>
                        </ul>
                    </div>
                    <div class="col-md-9">
                        <ul class="px-0">
                            <li style="height: 25px;">
                                <input id="form-id" name="id" value="1" style="width: 100px;" readonly>
                                <span style="color: darkred; font-size: 10px">* 无法更改</span>
                            </li>
                            <li style="height: 25px;">
                                <input id="form-code" name="code" readonly>
                            </li>
                            <li style="height: 25px;">
                                <input id="form-name" name="name">
                            </li>
                            <li style="height: 25px;">
                                <input id="form-contact" name="contact">
                                <span style="color: gray; font-size: 10px">* </span>
                            </li>
                            <li style="height: 25px;">
                                <input name="fax" id="form-fax" type="text"/>
                                <span style="color: gray; font-size: 10px">*</span>
                            </li>
                            <li style="height: 25px;">
                                <input name="phone" id="form-phone" type="text"/>
                                <span style="color: gray; font-size: 10px">* </span>
                            </li>
                            <li style="height: 25px;">
                                <input id="form-address" name="address">
                                <span style="color: gray; font-size: 10px">* </span>
                            </li>
                            <li style="height: 95px;">
                                <textarea name="detail" class="form-control" id="form-detail" rows="3"></textarea>
                                <span style="color: darkred; font-size: 10px">* 限制在128个字符以内, 且不能包含&*%$(#)^*#等特殊符号</span>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button id="btn-modal-cancel" type="button" class="btn btn-secondary btn-sm" data-bs-dismiss="modal">取消</button>
                <button id="btn-modal-ok" type="button" class="btn btn-success btn-sm" onclick="updateProvider()">确认</button>
            </div>
        </div>
    </div>
</div>
<!-- Modal -->
<div class="modal fade" id="div-modal-add" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="modal-title" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="modal-title">添加供应商</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body u-card">
                <form id="form-provider-add" method="post" class="container row">
                    <div class="col-md-3 px-0">
                        <ul class="px-0">
                            <li style="height: 25px;">
                                <label style="float:right" for="form-id">供应商账号:</label>
                            </li>
                            <li style="height: 25px;">
                                <label style="float:right" for="form-name">供应商名称:</label>

                            </li>
                            <li style="height: 25px;">
                                <label style="float:right" for="form-contact">联系人:</label>

                            </li>

                            <li style="height: 25px;">
                                <label style="float:right" for="form-fax">传真:</label>

                            </li>

                            <li style="height: 25px;">
                                <label style="float:right" for="form-phone">联系电话:</label>

                            </li>

                            <li style="height: 25px;">
                                <label style="float:right" for="form-address">地址:</label>

                            </li>

                            <li style="height: 25px;">
                                <label style="float:right" for="form-detail">描述:</label>
                            </li>
                        </ul>
                    </div>
                    <div class="col-md-9">
                        <ul class="px-0">
                            <li style="height: 25px;">
                                <input id="form-code-add" name="code">
                            </li>
                            <li style="height: 25px;">
                                <input id="form-name-add" name="name">
                            </li>
                            <li style="height: 25px;">
                                <input id="form-contact-add" name="contact">
                                <span style="color: gray; font-size: 10px">* </span>
                            </li>
                            <li style="height: 25px;">
                                <input name="fax" id="form-fax-add" type="text"/>
                                <span style="color: gray; font-size: 10px">* </span>
                            </li>
                            <li style="height: 25px;">
                                <input name="phone" id="form-phone-add" type="text"/>
                                <span style="color: gray; font-size: 10px">* </span>
                            </li>
                            <li style="height: 25px;">
                                <input id="form-address-add" name="address">
                                <span style="color: gray; font-size: 10px">* </span>
                            </li>
                            <li style="height: 95px;">
                                <textarea name="detail" class="form-control" id="form-detail-add" rows="3"></textarea>
                                <span style="color: darkred; font-size: 10px">* 限制在128个字符以内, 且不能包含&*%$(#)^*#等特殊符号</span>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button id="btn-modal-cancel-add" type="button" class="btn btn-secondary btn-sm" data-bs-dismiss="modal">取消</button>
                <button id="btn-modal-ok-add" type="button" class="btn btn-success btn-sm" onclick="addProvider()">确认</button>
            </div>
        </div>
    </div>
</div>
